package cn.iocoder.yudao.module.hs.controller.admin.device.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

@Schema(description = "管理后台 - 基站信息新增/修改 Request VO")
@Data
public class DeviceSaveReqVO {

    @Schema(description = "基站主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "2320")
    private Long id;

    @Schema(description = "基站ID", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "基站ID不能为空")
    private String code;

    @Schema(description = "基站IP", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "基站IP不能为空")
    private String ip;

    @Schema(description = "所在仓库", requiredMode = Schema.RequiredMode.REQUIRED, example = "400")
    @NotNull(message = "所在仓库不能为空")
    private Long warehouseId;

    @Schema(description = "是否为待出库区", requiredMode = Schema.RequiredMode.REQUIRED, example = "400")
    @NotNull(message = "是否为待出库区不能为空")
    private Boolean waitingArea;

}
